import {action, makeAutoObservable, observable} from "mobx";


export default class Detail {
    @observable name : string = ''
    constructor(initState : {name : string} = {name :""}) {
        this.name = initState.name;
        makeAutoObservable(this)
    }
    @action
    public setName =(name : string) =>{
        this.name = name
    }
    @action
    public logout =() =>{
        this.setName("")
    }
}
